export interface IArticle {
  uid: number;
  id: number;
  username: string;
  title: string;
  type: string;
  desc: string;
  tags: string[];
  avatarUrl: string;
  cover: string;
  content: string;
  createTime: string;
  updateTime: string;
  read: number;
}

export interface IuserInfo {
  avatarUrl: string;
  createTime: string;
  desc: string;
  email: string;
  gender: string;
  phone: string;
  token: string;
  updateTime: string;
  username: string;
  id?: number | string;
  article: number;
  articleType: number;
  tag: string[];
  file: string[];
  comment: any[];
}
export interface IUserState {
  isLogin: boolean;
  userInfo?: Partial<IuserInfo>;
}

export interface IArticleState {
  articles: IArticle[];
}
